<table>
    <thead>
        <tr>
            <g:sortableColumn property="serialNumber" title="${message(code: 'admin.recordType.serialNumber', default: 'SerialNumber')}" />
            <g:sortableColumn property="name" title="${message(code: 'admin.recordType.name', default: 'Name')}" />
            <g:sortableColumn property="domain" title="${message(code: 'admin.recordType.domain', default: 'Domain')}" />
            <g:sortableColumn property="description" title="${message(code: 'admin.recordType.description', default: 'Desc')}" />
            <g:sortableColumn property="isActive" title="${message(code: 'admin.recordType.isActive', default: 'Is Active')}" />
            <g:sortableColumn property="dateCreated" title="${message(code: 'admin.recordType.dateCreated', default: 'Date Created')}" />
            <g:sortableColumn property="lastUpdated" title="${message(code: 'admin.recordType.lastUpdated', default: 'Last Updated')}" />
        </tr>
    </thead>
    <tbody>
    <g:each in="${recordTypeInstanceList}" status="i" var="recordTypeInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${recordTypeInstance.id}">${fieldValue(bean: recordTypeInstance, field: "serialNumber")}</g:link></td>
            <td>${fieldValue(bean: recordTypeInstance, field: "name")}</td>
            <td>${fieldValue(bean: recordTypeInstance, field: "domain")}</td>
            <td>${fieldValue(bean: recordTypeInstance, field: "description")}</td>
            <td><g:formatBoolean boolean="${recordTypeInstance.isActive}" /></td>
            <td>${fieldValue(bean: recordTypeInstance, field: "dateCreated")}</td>
            <td>${fieldValue(bean: recordTypeInstance, field: "lastUpdated")}</td>
        </tr>
    </g:each>
    </tbody>
</table>
